/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package controllers;

/**
 *
 * @author owner
 */
public final class ExtMethods {

    public static String getDayByNum(int num) {
        String day = null;

        switch (num) {
            case 1:
                day = "sun";
                break;
            case 2:
                day = "mon";
                break;
            case 3:
                day = "tue";
                break;
            case 4:
                day = "wed";
                break;
            case 5:
                day = "thurs";
                break;
            case 6:
                day = "fri";
                break;
            case 7:
                day = "sat";
                break;
        }

        return day;
    }

    public static String getDayByNumFull(int num) {
        String day = null;

        switch (num) {
            case 1:
                day = "Sunday";
                break;
            case 2:
                day = "Monday";
                break;
            case 3:
                day = "Tuesday";
                break;
            case 4:
                day = "Wednesday";
                break;
            case 5:
                day = "Thursday";
                break;
            case 6:
                day = "Friday";
                break;
            case 7:
                day = "Saturday";
                break;
        }

        return day;
    }

}
